package Exercises;

import java.util.Scanner;

public class Task15 {

	public static void main(String[] args) {

		Scanner sc = new Scanner (System.in);
	
		System.out.println("Please enter a number: ");

	int n =	sc.nextInt();
	
	int a = 0;
	int x = 10;
	int y = 1;
	String s = "Your reversed number is ";
	
	for(int i = 1; i<n; i *=10)
	{
		a = (n%x)/y;
		
		x *=10;
		y *=10;

		s +=a;
	}
		
		System.out.println(s);
		
		
		
	}

}
